Direct memory access in operating system